import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
//列表数据
export const columns: BasicColumn[] = [
    {
    title: '外键，房源',
    align:"center",
    dataIndex: 'roomId'
   },
   {
    title: '外键，核定单位',
    align:"center",
    dataIndex: 'checkApart'
   },
   {
    title: '外键,用户',
    align:"center",
    dataIndex: 'uid'
   },
];
//查询数据
export const searchFormSchema: FormSchema[] = [
];
//表单数据
export const formSchema: FormSchema[] = [
  {
    label: '外键，房源',
    field: 'roomId',
    component: 'Input',
    dynamicRules: ({model,schema}) => {
          return [
                 { required: true, message: '请输入外键，房源!'},
          ];
     },
  },
  {
    label: '外键，核定单位',
    field: 'checkApart',
    component: 'Input',
    dynamicRules: ({model,schema}) => {
          return [
                 { required: true, message: '请输入外键，核定单位!'},
          ];
     },
  },
  {
    label: '外键,用户',
    field: 'uid',
    component: 'Input',
    dynamicRules: ({model,schema}) => {
          return [
                 { required: true, message: '请输入外键,用户!'},
          ];
     },
  },
];
